From ec5446eae22d8ace3b67d0752d3620098d68fe7f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 15 Sep 2009 10:02:15 +0100 Subject: [PATCH] xenoprof: add support for Core i7 and Atom. Signed-off-by: Yang Zhang Signed-off-by: Yang Xiaowei --- xen/arch/x86/oprofile/nmi_int.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/oprofile/nmi_int.c b/xen/arch/x86/oprofile/nmi_int.c index 89040890d6..7ab1573364 100644 --- a/xen/arch/x86/oprofile/nmi_int.c +++ b/xen/arch/x86/oprofile/nmi_int.c @@ -357,24 +357,30 @@ static int __init ppro_init(char ** cpu_type) *cpu_type = "i386/pii"; break; case 6 ... 8: + case 10 ... 11: *cpu_type = "i386/piii"; break; case 9: + case 13: *cpu_type = "i386/p6_mobile"; break; - case 10 ... 13: - *cpu_type = "i386/p6"; - break; case 14: *cpu_type = "i386/core"; break; case 15: case 23: - case 26: case 29: *cpu_type = "i386/core_2"; ppro_has_global_ctrl = 1; break; + case 26: + *cpu_type = "i386/core_i7"; + ppro_has_global_ctrl = 1; + break; + case 28: + *cpu_type = "i386/atom"; + ppro_has_global_ctrl = 1; + break; default: /* Unknown */ printk("xenoprof: Initialization failed. " -- 2.30.2